<template>
    <div class="box">
        <!-- 广告词 -->
        <div>
            <div class="box1">
                <div class="zi">                
                    <p class="p1">双线质量管控体</p>
                    <p class="p1">力求每件产品、每个细节都尽善尽美</p>
                </div>
            </div>
            <div class="box2">
                <p class="p2">够专业 才放心</p>
            </div>
        </div>
        <!-- 登录窗口 -->
        <div class="loginbox">
            <div class="text1">欢迎使用</div>
            <div class="text2">系统登录</div>
            <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="90px" class="demo-ruleForm">
                <!-- 用户名 -->
                <el-form-item label="用户名" prop="name">
                    <el-input style="width:250px;" v-model="ruleForm.name"></el-input>
                </el-form-item>
                <!-- 密码 -->
                <el-form-item label="密码" prop="passward">
                    <el-input style="width:250px;" v-model="ruleForm.passward"></el-input>
                </el-form-item>
                <el-button type="primary" round style="width:159px;  margin-left: 100px;">登录</el-button>
            </el-form>
        </div>
        <div>
            <!-- 版号 -->
            <div class="num">
                <p class="p3">All Rights Reserved ©2021 版权所有 | 粤ICP备18069755号</p>
                <p class="p4">ORDER聚造</p>
            </div>
        </div>
    </div>
</template>

<script>
//import HelloWorld from './components/HelloWorld.vue'
export default {
  name: 'App',
  components: {
    //HelloWorld
  },
  data(){
    return {
      ruleForm: {
          name: '',
          passward:'',
        },
      rules:{
          name:[
              { required: true, message: '请输入用户名', trigger: 'blur' },
          ],
          passward:[
              { required: true, message: '请输入密码', trigger: 'blur' },
          ]
      }
    }
  },
  methods:{
        // submitForm(){
        //     this.$refs.ruleForm.validata((valid) =>{
        //         if(valid){
        //             this.$http({
        //                 url:'/login',
        //                 method:'Post',
        //                 data:{
        //                     name:this.ruleForm.name,
        //                     passward:this.ruleForm.passward,
        //                     platform:'web'
        //                 }
        //             }).then(res =>{
        //                 if(!res.errorMsg){
        //                     localStorage.setItem('token',res.token)
        //                     localStorage.setItem('user',JSON.stringify(res))
        //                     this.$router.push('/index')
        //                 }
        //             })
        //         }
        //     });
        // }
  },
  created(){

  },
  mounted(){
  }
}
</script>

<style>
.box{
    margin: 0 auto;
    background-size: 100% 100%;
    background-image: url(./img/p1.png);
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    display: flex;
    flex-wrap: wrap;
}
.box1{
    position: relative;
    width: 118px;
    height: 162px;
    background: #E1F2F9;
    border-radius: 0px 0px 0px 0px;
    opacity: 0.3;
    left: 85px;
    top: 202px;
}
.box2{
    position: relative;
    width: 135px;
    height: 164px;
    background: #E1F2F9;
    border-radius: 0px 0px 0px 0px;
    opacity: 0.3;
    left: 157px;
    top: 185px;
}
.loginbox{
    width: 359px;
    height: 359px;
    background: #EFEFF0;
    border-radius: 20px 20px 20px 20px;
    opacity: 0.9;
    margin-top: 223px;
    margin-left: 55%;
}
.text1{
    width: 52px;
    height: 16px;
    font-size: 13px;
    font-family: MicrosoftYaHeiUI-, MicrosoftYaHeiUI;
    font-weight: normal;
    color: #96A3B0;
    line-height: 23px;
    margin-left: 32px;
    margin-top: 23px;
}
.text2{
    width: 333px;
    height: 85px;
    font-size: 27px;
    font-family: MicrosoftYaHeiUI-Bold-, MicrosoftYaHeiUI-Bold;
    font-weight: normal;
    color: #4E4E4E;
    line-height: 47px;
    margin-left: 32px;
    margin-top: 6px;

}
.num{
    width: 100%;
}
.p3{
    font-size: 13px;
    font-family: MicrosoftYaHeiUI-Bold-, MicrosoftYaHeiUI-Bold;
    font-weight: normal;
    color: #565656;
    line-height: 23px;
    margin-left: 610px;
    margin-top: 51px;
}
.p4{
    font-size: 19px;
    font-family: MicrosoftYaHeiUI-Bold-, MicrosoftYaHeiUI-Bold;
    font-weight: normal;
    color: #409EFF;
    margin-left: 1350px;
}
.p1{
    width: 25px;
    font-weight: normal;
    color: #ffffff;
    opacity: 1;
}
.zi{
    margin-left: 58px;
    display: flex;
}

</style>
